<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	 <title><?php echo $this->_lang['site_title']; ?></title>
	<link href="<?php echo $_config['url']['css']; ?>base.css" rel="stylesheet" type="text/css">
 <style>
	#cate_item{width:65px;height:20px;background-color:#FFFFCC;border:1px solid #339900;text-align:center;float:left;margin-right:3px;margin-bottom:3px;padding:3px;}
	#cate_left{width:30%;float:left;}
	#cate_left_fieldset{width:100%; border:1px solid #A5A5A5;text-align:left;font-size:12px;font-family:Verdana;padding:15px;}
	#cate_right{width:63%;padding-top:10px;float:right;margin-left:5px;}
	#cate_right_fieldset{width:95%; border:1px solid #A5A5A5;text-align:left;font-size:12px;font-family:Verdana;padding:15px;}
	#lgd{color:#A5A5A5;font-size:16px;padding:10px;}
	#cate_right_fieldset ul{padding-top:10px;}
 </style>
 </head>

 <body>
 <div id="mask">
<?php echo $layout_header; ?>

<div id="cate_left">
	<?php
	foreach($data['list_data'] as $key=>$row)
	{
	 ?>
	<div style="margin:0 auto;width:100%;padding-top:10px;">
		 <fieldset id="cate_left_fieldset">
			 <legend id="lgd"><?php echo $key; ?></legend>
			<?php
				foreach($row as $site)
				{
			 ?>
			<div id="cate_item" onMouseOver="this.style.backgroundColor='#BCF7B9';" onMouseOut="this.style.backgroundColor='#FFFFCC';"><a href="index.php?id=<?php echo $site['id']; ?>"><?php echo $site['cname']; ?></a>(<?php echo $site['cnt']; ?>)</div>
			<?php
				}
			?>
		</fieldset>
	</div>
	<?php
	}
	?>
</div>

<div id="cate_right">
	 <fieldset id="cate_right_fieldset">
	 <legend id="lgd"><?php echo $data['title']; ?></legend>
		 <ul>
		<?php
		foreach($data['site_data'] as $row)
		{
			echo '<li style="float:left;height:25px;width:100px;"><a href="site.php?id=' . $row['id'] .'&title=' . rawurlencode( $row['name'] ) . '&url=' . rawurlencode($row['url']) . '">' . $row['name'] . '</a></li>' . "\r\n";
		}
		?>
		</ul>
	</fieldset>
</div>

<?php echo $layout_footer; ?>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15951400-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</div>
</body>
</html>
